<template>
    <div id="download" class="wechat">
    </div>
</template>
<script>
export default {
  mounted() {
    var ua = navigator.userAgent.toLowerCase();
    if (ua.match(/MicroMessenger/i) == "micromessenger") {
      document.getElementById("download").className = "wechat";
    } else {
      location.href =
        "http://www.laiyintools.com/api/resume/file/" + this.$route.query.id;
    }
  }
};
</script>
<style lang="stylus" scoped>
#download {
    width: 100%;
    height: 100%;
}

.wechat {
    background: url('../assets/bk.png') no-repeat center center fixed;
    background-size: cover;
}
</style>


